package com.zxn.ssyx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zxn.ssyx.mapper.SkuImageMapper;
import com.zxn.ssyx.model.product.SkuImage;
import com.zxn.ssyx.service.SkuImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SkuImageServiceImpl extends ServiceImpl<SkuImageMapper, SkuImage> implements SkuImageService {
    @Autowired
    private SkuImageMapper skuImageMapper;
    @Override
    public List<SkuImage> selectBySkuId(Long id) {
        LambdaQueryWrapper<SkuImage> lqw = new LambdaQueryWrapper<>();
        lqw.eq(SkuImage::getSkuId,id);
        return skuImageMapper.selectList(lqw);
    }
}
